/**
 * Created by Administrator on 2017/4/20.
 */


var Poker = require('../Poker/Poker');

var Pattern = {
    NONE: 0,        // 
    SINGLE:1,      //单张
    PAIR:2,         //对子
    STRAIGHT:3,     //顺子
    STRPAIR:4,      //连对
    THREEBOOM:5,    //三张炸    
    FOURBOOM:6,     //四张炸
    TWOLZ:7,        //双赖炸
    FIVEBOOM:8,     //五张炸
    THREELZBOOM:9,    //三赖炸
    SIXBOOM:10,     //六张炸
}

var PatternMulti = {};
PatternMulti[Pattern.NONE] = 1;
PatternMulti[Pattern.SINGLE] = 1;
PatternMulti[Pattern.PAIR] = 1;
PatternMulti[Pattern.STRAIGHT] = 1;
PatternMulti[Pattern.STRPAIR] = 1;
PatternMulti[Pattern.THREEBOOM] = 2;
PatternMulti[Pattern.FOURBOOM] = 4;
PatternMulti[Pattern.TWOLZ] = 4;
PatternMulti[Pattern.FIVEBOOM] = 8;
PatternMulti[Pattern.THREELZBOOM] = 8;
PatternMulti[Pattern.SIXBOOM] = 16;



exports.Pattern = Pattern;
exports.PatternMulti = PatternMulti;

